/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.sys.echartDto.ResultDto;
import com.jeeplus.modules.sys.echartDto.ResultProjectTypeDto;
import com.jeeplus.modules.sys.echartDto.ResultVo;
import com.jeeplus.modules.sys.entity.Result;

/**
 * 成果登记DAO接口
 * @author lw
 * @version 2017-12-30
 */
@MyBatisDao
public interface ResultDao<T> extends CrudDao<Result> {

	List<T> findListByOfficeId(Result result);

	int selectCountByOfficeId(@Param(value="officeId")String officeId);

	List<ResultDto> findAmount(@Param(value="officeId")String officeId);

	Integer findCountByOffice(Result result);
	
	Integer findCountByDate(Result result);
	
	Integer findCountByUser(Result result);

	void updateProcessNode(Result result);

	List<ResultProjectTypeDto> echartProjectType();
	
	List<ResultProjectTypeDto> selectResultRepub();
	/**
	 * 按发表人查询
	 * @param entity
	 * @return
	 */
	public List<Result> findByPublisher(ResultVo resultVo);
}